package com.itheima.Jiuye08;

import java.util.ArrayList;

public class MyGenericityDemo {
    public static void main(String[] args) {
        ArrayList<String> list = AddElement(new ArrayList<String>(), "bbb");
        System.out.println(list);
    }
    public static<T> ArrayList<T> AddElement(ArrayList<T> list,T t) {
        list.add(t);
        return  list;
    }
}
